package chap06;

public class Student {
    private  String name;
    private  String sNo;
    private double score;

    public Student() {
    }

    public Student(String name, String sNo, double score) {
        this.name = name;
        this.sNo = sNo;
        this.score = score;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getsNo() {
        return sNo;
    }

    public void setsNo(String sNo) {
        this.sNo = sNo;
    }

    public double getScore() {
        return score;
    }

    public void setScore(double score) {
        this.score = score;
    }

    @Override
    public String toString() {
        return
                "姓名：'" + name + '\'' +
                ", 学号：'" + sNo + '\'' +
                ", 成绩：" + score ;

    }
}
